package com.quarkus;

import io.sentry.Sentry;

import javax.ws.rs.GET;
import javax.ws.rs.Path;

@Path("sentry")
public class SentryResource {

    @GET
    public String test(){
        try {
            int a = 1/0;
        }catch (Exception e){
            Sentry.captureException(e);
            e.printStackTrace();
        }

        return "SUCCESS";
    }
}
